import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.mitsuki_momo_livestreamingschedule.model.ThreeDes;
import javafx.util.Builder;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author ：lxb
 * @ProjectName: mitsuki_momo_liveStreamingSchedule
 * @Package: PACKAGE_NAME
 * @ClassName: bankDemo
 * @date ：Created in  2023/6/1 17:02
 * @description：
 * @version: 1.0
 */
public class bankDemo {

    public static void main(String[] args) throws Exception {
        String s = "{\n" +
                "    \"token\": \"d68e9730-2fff-47b2-9d44-32e601afa4ab\",\n" +
                "    \"startRecordTime\": \"20230101000000\",\n" +
                "    \"endRecordTime\": \"20230801000000\",\n" +
                "    \"orgNo\": \"00001019\",\n" +
                "    \"pageSize\": 10,\n" +
                "    \"pageNo\": 1\n" +
                "}";
        Map<String, String> map = new HashMap<>();
        map.put("token", "d68e9730-2fff-47b2-9d44-32e601afa4ab");
        map.put("startRecordTime", "20230101000000");
        map.put("endRecordTime", "20230801000000");
        map.put("orgNo", "00001019");
        map.put("pageSize", "10");
        map.put("pageNo", "1");

        System.out.println(JSON.toJSONString(map));
        System.out.println("3DES加密结果 BASE64表示 : :" + Base64.getEncoder().encodeToString(ThreeDes.encryptMode(new String(JSON.toJSONString(map)).getBytes(Charset.forName("UTF-8")), "123456")));
    }




}


